package com.cn.shop.dao;

import com.cn.shop.entity.home.Activity;
import com.cn.shop.entity.home.Notice;
import com.cn.shop.entity.home.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface HomeDao {
    /*获取商品列表*/
    List<Shop> getShopLists(@Param("longitude") String longitude, @Param("latitude") String latitude);
    /*获取活动列表*/
    List<Activity> getActivityByShopId(int shopId);
    /*获取公告列表*/
    List<Notice> getNoticeLists();
}
